import menus from '@/menu'
const state = {
  mode: 'default',
  theme: 'default',
  collapsible: false,
  collapse: false,
  currentHeader: 'app',
  showHeader: true,
  menus
}

const mutations = {
  initPage (state) {
    state.openedPages = []
  },
  toggleCollapse (state) {
    state.collapse = !state.collapse
  },
  changeCurrentHeader (state, header) {
    state.currentHeader = header
  }
}

const actions = {
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
